package example.demo.dp2;

import java.util.List;

public class ZChain {
    List<Z> zList;
    int idx;

    public void doFilter(Object obj) {
        if (idx == zList.size()) {
            return;
        }
        zList.get(idx++).doFilter(obj,this);
    }
}
